2f8bcd6c715983c61e4c83de780103e25f5ca53a,src/main/java/org/zalando/planb/revocation/config/RevocationConfig.java,RevocationConfig,messageHasher,#,21
Before Change
@Bean
public MessageHasher messageHasher() throws NoSuchAlgorithmException {
return new MessageHasher(hashingProperties.getAlgorithms(), hashingProperties.getSalt(),
hashingProperties.getSeparator());
}
}
After Change
hashers.put(type, MessageDigest.getInstance(hashingProperties.getAlgorithms().get(type)));
}
return ImmutableMessageHasher.builder()
.hashingAlgorithms(hashers)
.salt(hashingProperties.getSalt())
.separator(hashingProperties.getSeparator())
.build();
}
}